package com.UdpRecieve.secret;

import com.UdpRecieve.secret.service.SecretBusinessLogicInterface;
import com.UdpRecieve.secret.service.impl.SecretBusinessLogic_FM_618;
import com.UdpRecieve.secret.service.impl.SecretBusinessLogic_SBR_618;

/**
 * 归档类简易工厂
 */
public class SecretBusinessLogicFactory {
    private SecretBusinessLogicInterface filePigeonholeSave;

    public SecretBusinessLogicFactory(String company, String location) {

        if(location.equals("unsecret")){//非秘网
            filePigeonholeSave = new SecretBusinessLogic_FM_618();
        }else if(location.equals("secret")){//秘网
            filePigeonholeSave = new SecretBusinessLogic_SBR_618();
        }
        if (filePigeonholeSave==null){
            System.out.println("filePigeonholeSave为null");
        }

    }

    public SecretBusinessLogicInterface INSTANCE(){
        return filePigeonholeSave;
    }
}
